package reduce.fz.com.reduce.activity;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import java.util.List;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.abstracts.AbRecycleScroollListener;
import reduce.fz.com.reduce.adapter.CardDetailAdapter;
import reduce.fz.com.reduce.bean.Card;
import reduce.fz.com.reduce.bean.ReplyComment;

public class CardDetailActivity extends BaseToolBarActivity implements View.OnClickListener {
    private RecyclerView mCardDetailList;
    private EditText mEtcomment;
    private TextView mTvreply;
    private Card card;
    private List<ReplyComment> replys;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card_detail);
    }

    @Override
    public void initWidget() {
        mCardDetailList = (RecyclerView) this.findViewById(R.id.carddetail_list);
        mEtcomment = (EditText) this.findViewById(R.id.et_comment);
        mTvreply = (TextView) this.findViewById(R.id.btn_reply);
        CardDetailAdapter adapter = new CardDetailAdapter(this.getBaseContext(), card, replys, new CardDetailAdapter.CardDetailListener() {
            @Override
            public void onPressNickName(Card card) {

            }

            @Override
            public void onPressUserHead(Card card) {

            }

            @Override
            public void onPressZan(Card card) {

            }

            @Override
            public void onPressPinglun(Card card) {

            }

            @Override
            public void onPressFenxiang(Card card) {

            }

            @Override
            public void onPressGuanzhu(Card card) {

            }
        });
        mCardDetailList.setAdapter(adapter);

    }

    @Override
    public void initListener() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.et_comment:
                break;
            case R.id.btn_reply:
                break;
            default:
                break;


        }

    }
}
